package com.kaolafm.kradio.k_navi_map.location.factory;

import android.content.Context;

import com.kaolafm.kradio.k_navi_map.location.amap.AMapLocationManager;
import com.kaolafm.kradio.k_navi_map.location.base.ILocation;

/**
 * Created by kaolafm on 2018/4/15.
 */

public class LocationFactory {

    private ILocation mLocation;

    private static LocationFactory mLocationFactory;

    public static LocationFactory getInstance(){
        if(mLocationFactory == null){
            mLocationFactory = new LocationFactory();
        }
        return mLocationFactory;
    }

    public ILocation initLocation(Context context, String type){
        mLocation = new AMapLocationManager(context);
        return mLocation;
    }
}
